<template>
	<view class="">
		<view class="header">
			<view class="one">
				您当前积分为
			</view>
			<view class="num">
				0
			</view>
			<view class="three">
				积分可以当钱花
			</view>
			<view class="explain">
				<image src="../../static/image/mine/integral/explain.png" mode=""></image>
				积分说明
			</view>
		</view>
		<view class="card">
			<!-- <view class="nohistory">
				<image src="../../static/image/mine/integral/nointegral.png" mode=""></image>
				<text>您还没有积分记录哦</text>
			</view> -->
			<scroll-view class="integral_list" scroll-y="true" >
				<view class="list" v-for="(item,index) in list" >
					<view class="list_l">
						<view class="tilte">
							{{item.name}}
						</view>
						<view class="date">
							{{item.date}}
						</view>
					</view>
					<view class="list_r">
						{{item.num}}
					</view>
				</view>
			</scroll-view>
		</view>
	</view>
</template>

<script>
	export default {
		data () {
			return {
				list: [
					{
						name: '签到奖励积分',
						date: '2015-16-18 13:14:26',
						num: '+26'
					},
					{
						name: '购物奖励积分',
						date: '2019-16-18 13:14:26',
						num: '+50'
					},
					{
						name: '抽奖消耗积分',
						date: '2015-16-18 13:14:26',
						num: '-26'
					},
					{
						name: '活动奖励积分',
						date: '2019-16-18 13:14:26',
						num: '+8'
					},
					{
						name: '签到奖励积分',
						date: '2015-16-18 13:14:26',
						num: '+26'
					},
					{
						name: '购物奖励积分',
						date: '2019-16-18 13:14:26',
						num: '+50'
					},
					{
						name: '抽奖消耗积分',
						date: '2015-16-18 13:14:26',
						num: '-26'
					},
					{
						name: '活动奖励积分',
						date: '2019-16-18 13:14:26',
						num: '+8'
					},
					{
						name: '抽奖消耗积分',
						date: '2015-16-18 13:14:26',
						num: '-26'
					}
				]
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="less" scoped>
	.header {
		width: 100%;
		height: 232upx;
		padding: 0 30upx;
		box-sizing: border-box;
		background-color: #f73e2f;
		position: relative;
		.one {
			font-size: 28upx;
			color: #FFFFFF;
			line-height: 70upx;
		}
		.num {
			font-size: 40upx;
			color: #FFFFFF;
			font-weight: bold;
			line-height: 40upx;
		}
		.three {
			font-size: 24upx;
			color: #FFFFFF;
			line-height: 80upx;
		}
		.explain {
			font-size: 28upx;
			color: #FFFFFF;
			position: absolute;
			right: 30upx;
			top: 60upx;
			image {
				margin-right: 10upx;
				width: 22upx;
				height: 22upx;
			}
		}
	}
	.card {
		position: relative;
		box-sizing: border-box;
		width: calc(100% - 30upx);
		height: 900upx;
		margin:auto;
		margin-top: -40upx;
		background-color:#FFFFFF;
		border-radius: 20upx;
		.nohistory {
			overflow: hidden;
			text-align: center;
			image {
				width: 291upx;
				height: 201upx;
				display: block;
				margin: auto;
				margin-top: 200upx;
				margin-bottom: 30upx;
				
			}
			text {
				font-size: 28upx;
				color: #999999;
			}
		}
		.integral_list {
			width: 100%;
			height: 100%;
			padding: 0 25upx;
			box-sizing: border-box;
			.list {
				width: 100%;
				height: 136upx;
				border-bottom: 2upx solid #E1E1E1;
				display: flex;
				align-items: center;
				justify-content: space-between;
				.list_l {
					.tilte {
						font-size: 28upx;
						color: #333333;
						line-height: 28upx;
					}
					.date {
						font-size: 24upx;
						color: #999999;
						line-height: 24upx;
						margin-top: 25upx;
					}
				}
				.list_r {
					font-size: 28upx;
					color: #fec004;
					font-weight: bold;
				}
			}
			.list:last-child {
				border-bottom: none;
			}
		}
	}
</style>
